package mate.business
{
	import classespinkpony.Practice;
	
	import mx.collections.ArrayCollection;

	public class ProfileManager
	{
		private var _practice:Practice;
		
		private var _practices:ArrayCollection = new ArrayCollection();
		
		[Bindable]
		public function get practices():ArrayCollection
		{
			return _practices;
		}
		
		public function set practices(value:ArrayCollection):void
		{
			_practices = value;
		}
		
		public function storePractices(practices:Object):void
		{
			var temp: ArrayCollection = new ArrayCollection();
			
			if(practices != null){
				for each (var practice:Practice in practices)
				{
					temp.addItem(practice);
				}
			}
			
			this.practices = temp;
		}
	}
}